/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package org.whuims.repository.jpa;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.whuims.entity.Document;

import java.util.List;

public interface DocumentDao extends PagingAndSortingRepository<Document, Long>, JpaSpecificationExecutor<Document> {

    @Query(value = "select id from document", nativeQuery = true)
    List<Long> getAllId();
}
